projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c03ac2
)
Use memmove for overlapping mem copy.
author
robertl
<robertl>
Tue, 24 May 2005 05:14:33 +0000
(
05:14
+0000)
committer
robertl
<robertl>
Tue, 24 May 2005 05:14:33 +0000
(
05:14
+0000)
util.c
patch
|
blob
|
history
diff --git
a/util.c
b/util.c
index d1a5fa82ad3339745b6a87a2a6dbca5d8f748ef7..4ce40cf4fbdfd8e712d54348b91517d91c5a51b2 100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-895,7
+895,7
@@
char * str_utf8_to_ascii( const char * str )
cur += bytes - 1;
} else {
*cur = (char)value;
-
strcpy( cur+1, cur+bytes
);
+
memmove(cur+1, cur+bytes, bytes+1
);
}
}
cur++;